package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_oper_log")
@Schema(name = "OperLog对象", description = "操作日志表")
public class OperLog extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "模块标题")
    private String title;

    @Schema(description = "业务类型（0其他，1增加，2删除，3修改，4查询）")
    private String businessType;

    @Schema(description = "业务方法名称")
    private String method;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "操作类型（0其他，1后台，2手机）")
    private String operType;

    @Schema(description = "操作人员名称")
    private String operName;

    @Schema(description = "请求的URL")
    private String operUrl;

    @Schema(description = "请求参数")
    private String requestParam;

    @Schema(description = "主机地址")
    private String operIp;

    @Schema(description = "操作状态（0：正常，1：异常）")
    private Boolean status;

    @Schema(description = "错误消息")
    private String errorMsg;

    @Schema(description = "操作时间")
    private LocalDateTime operTime;

}
